<?php

namespace App\Models;

use App\Models\ProductSku;
use Eloquent;
use Illuminate\Database\Eloquent\Collection;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\HasMany;
use Illuminate\Database\Eloquent\SoftDeletes;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Support\Carbon;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Redis;


class OrderProduct extends Model
{
    use SoftDeletes;

    protected $fillable = ['order_id','product_id','sku_id','sold_price','origin_price','num','snapshoot'];


    public function product()
    {
        return $this->hasOne(Product::class,'id','product_id');
    }

}
